package model.db;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="Annotation")
public class Annotation {

	private long id;
	private int  grade=-1;
	private long vertical_id_left;
	private long vertical_id_right;
	private long query_id;
	private int score=-1;
	private long user_id;
	private Date start_time;
	private Date end_time;
	
	
	
	public Date getStart_time() {
		return start_time;
	}
	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}
	public Date getEnd_time() {
		return end_time;
	}
	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}
	@Id
	@GeneratedValue
	@Column(name="id")
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	@Column(name="grade")
	public int getGrade() {
		return grade;
	}
	public void setGrade(int grade) {
		this.grade = grade;
	}
	
	
	@Column(name="vertical_id_left")
	public long getVertical_id_left() {
		return vertical_id_left;
	}
	public void setVertical_id_left(long vertical_id_left) {
		this.vertical_id_left = vertical_id_left;
	}
	
	@Column(name="vertical_id_right")
	public long getVertical_id_right() {
		return vertical_id_right;
	}
	public void setVertical_id_right(long vertical_id_right) {
		this.vertical_id_right = vertical_id_right;
	}
	@Column(name="query_id")
	public long getQuery_id() {
		return query_id;
	}
	public void setQuery_id(long queryId) {
		query_id = queryId;
	}
	
	@Column(name="score")
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	
	
	@Column(name="user_id")
	public long getUser_id() {
		return user_id;
	}
	public void setUser_id(long userId) {
		user_id = userId;
	}
	
	
	
}
